package com.probiz.estoresa.product.web.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;

import com.probiz.estore.common.model.product.ProductSku;
import com.probiz.estore.core.controller.GenericStoreAdminController;
import com.probiz.estore.product.service.ProductSkuManager;

public class ProductSkuController extends GenericStoreAdminController<ProductSku> {
	private ProductSkuManager productSkuManager = null;
	

	public void setProductSkuManager(ProductSkuManager inMgr) {
		this.productSkuManager = inMgr;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.GenericController#getEntityName(java.lang.Object)
	 */
	@Override
	protected String getEntityName(ProductSku entity) {
		return entity.getProductSkuName();
	}


	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.BaseController#initController()
	 */
	@Override
	protected void initController() throws Exception {
		mgr = productSkuManager;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.GenericController#preSave(javax.servlet.http.HttpServletRequest,
	 *      java.lang.Object, org.springframework.validation.BindException)
	 */
	@Override
	protected void preSave(HttpServletRequest request, ProductSku productSku, BindException errors) {
		
	}

	

	@Override
	protected void onShowForm(HttpServletRequest request, ModelAndView mv) {
		
	}

	

	

}
